{% extends 'TopxiaWebBundle::layout.html.twig' %}

{% block keywords %}{{ setting('site.seo_keywords') }}{% endblock %}
{% block description %}{{ setting('site.seo_description') }}{% endblock %}

{#{% set qiniu = data('QiniuTest',{'count':0}) %}#}

{% set bodyClass = 'homepage' %}
{% set siteNav = '/' %}
{% set script_controller = 'index' %}
{% set _target_path = path('homepage') %}

{% block full_content %}

  {{ block_show('jianmo:home_top_banner') }}

  <div class="8000wei es-wrap">
    <div class="container">
      <div class="row">
        <main class="col-md-9">
          {% for pendant in themeConfig.blocks.left|default([]) %}

            <!-- 资讯 -->
            {% if loop.index == 1 %}
              {% set pendant_news = {'code': 'news'} %}
              {{ render(controller('TopxiaWebBundle:Theme:pendant', {config:pendant_news})) }}
            {% endif %}

            <!-- 线下培训 -->
            {% if loop.index == 2 %}
              {# {% set pendant_offlineCourse = {'code': 'offlineCourse'} %}
              {{ render(controller('TopxiaWebBundle:Theme:pendant', {config:pendant_offlineCourse})) }} #}

              <!-- 创业论坛 -->
              {% set pendant_startupForum = {'code': 'startupForum'} %}
              {{ render(controller('TopxiaWebBundle:Theme:pendant', {config:pendant_startupForum})) }}

            {% endif %}

            {#{% if loop.index == 3 %}
              <!-- 关于我们 -->
              <!-- {% set pendant_aboutUs = {'code': 'aboutUs'} %} -->
              <!-- {{ render(controller('TopxiaWebBundle:Theme:pendant', {config:pendant_aboutUs})) }} -->

              <!-- 我们的优势 -->
              <!-- {% set pendant_advantage = {'code': 'advantage'} %} -->
              <!-- {{ render(controller('TopxiaWebBundle:Theme:pendant', {config:pendant_advantage})) }} -->
            {% endif %}#}

            {{ render(controller('TopxiaWebBundle:Theme:pendant', {config:pendant})) }}

          {% endfor %}
        </main>

        <aside class="col-md-3">
          <!-- 课程分类 -->
          {% include 'TopxiaWebBundle:Default:recommend-classroom.html.twig' %}

          <!-- 热门标签 -->
          {#{% include 'TopxiaWebBundle:Article/Widget:tag-sidebar.html.twig' %}

          <!-- 热门评论 -->
          {% include 'TopxiaWebBundle:Article/Widget:hot-comment.html.twig' %}#}

          <!-- QQ 群 -->
          {% include 'TopxiaWebBundle:Default:qq-group.html.twig' %}

          <!-- 公众号二维码 -->
          {% include 'TopxiaWebBundle:Default:wechat.html.twig' %}

        </aside>
      </div>
    </div>
  </div>

{% endblock %}
